// ignore_for_file: non_constant_identifier_names

import 'package:flutter/material.dart';

class NormalButton extends StatelessWidget {
  final void Function() onPressed;
  final String title;
  final double radius;
  final double fontSize;
  final double padding_horizontal;
  final double padding_vertical;
  final Color bgColor;
  final Color textColor;
  const NormalButton({
    super.key,
    required this.title,
    required this.onPressed,
    this.radius = 10.0,
    this.fontSize = 15.0,
    this.padding_horizontal = 8.0,
    this.padding_vertical = 8.0,
    this.bgColor = Colors.blueAccent,
    this.textColor = Colors.white,
  });

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: double.infinity,
      child: Material(
        color: bgColor,
        borderRadius: BorderRadius.circular(radius),
        clipBehavior: Clip.hardEdge,
        child: InkWell(
          onTap: onPressed,
          child: Container(
            padding: EdgeInsets.only(
              top: padding_vertical,
              bottom: padding_vertical,
              left: padding_horizontal,
              right: padding_horizontal,
            ),
            child: Center(
              child: Text(
                title,
                style: TextStyle(color: textColor, fontSize: fontSize),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
